<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <title></title>
    <meta name="viewport" content="width=750,user-scalable=no,target-densitydpi=device-dpi, viewport-fit=cover">
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="full-screen" content="true" />
    <meta name="screen-orientation" content="portrait" />
    <meta name="x5-fullscreen" content="true" />
    <meta name="360-fullscreen" content="true" />
    <link rel="stylesheet" href="css/normalize.css">
    <link rel="stylesheet" href="css/main.css">
    <style>

    </style>
</head>

<body>
    <div id="app">

    </div>

    <script src="js/jweixin-1.6.0.js"></script>
    <!-- <script src="js/mock.min.js"></script> -->
    <!-- <script src="js/mock.api.js"></script> -->
    <script src="js/jquery-3.2.1.min.js"></script>
    <script src="js/utils.js"></script>
    <script src="js/wechatShare.js"></script>

    <script>
        $(function() {
            var shareid = browser.getUrlParam("shareid");
            if (!shareid) {
                location.href = "./index.html";
                return;
            }

            $.ajax({
                url: "/jssdkSignature",
                type: "POST",
                cache: false,
                dataType: "JSON",
                data: {
                    "url": encodeURIComponent(window.location.href.split('#')[0])
                },
                success: function(res) {
                    console.log("接口jssdkSignature返回数据：");
                    console.log(res);
                    if (res.code == 0) {
                        var data = res.data;
                        data.jsApiList = ["onMenuShareAppMessage", "onMenuShareTimeline"];
                        wx.config(data);
                    }
                },
                error: function(res) {}
            });
        });
    </script>
</body>

</html>